export enum AlarmEffectiveness {
  ManualExclusion = '1', // 人工排除数
  SmartExclusion = '2', // 智能排除数
  EffectiveAlarm = '3' // 有效报警数
}

export const getEffectivenessCode = (name: string): AlarmEffectiveness => {
  switch (name) {
    case '有效报警数':
      return AlarmEffectiveness.EffectiveAlarm;
    case '智能排除数':
      return AlarmEffectiveness.SmartExclusion;
    case '人工排除数':
    default:
      return AlarmEffectiveness.ManualExclusion;
  }
};
